<? session_start(); ?>
<html>
<?
if(isset($_SESSION['admin']))
 {
?>


<HTML>
<HEAD>
<TITLE>template-admin</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
	background-color: #000000;
}
.style4 {color: #330000}
#Layer6 {position:absolute;
	left:794px;
	top:102px;
	width:118px;
	height:54px;
	z-index:3;
}
#Layer1 {
	position:absolute;
	left:47px;
	top:495px;
	width:113px;
	height:59px;
	z-index:4;
}
#Layer2 {
	position:absolute;
	left:-4px;
	top:205px;
	width:178px;
	height:87px;
	z-index:4;
}
.style27 {
	color: #FFFF00;
	font-weight: bold;
	font-size: large;
}
-->
</style>
<link rel="stylesheet" type="text/css" href="sddm.css" >
<style type="text/css">
<!--
.style28 {
	font-size: large;
	font-weight: bold;
}
-->
</style>
</HEAD>
<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<p>
  <!-- ImageReady Slices (template-admin.psd) -->
  <? if($username=$_SESSION['admin']){?>
</p>

<div id="Layer6">
  <table width="200" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="28"><img src="icon/logout.png" width="24" height="24" /></td>
      <td width="172"><a href="logout.php" class="style4 style28">Logout</a> </td>
    </tr>
  </table>
</div>

<TABLE WIDTH=770 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
	<TR>
		<TD COLSPAN=15><img src="images/admin_01.gif" width=770 height=39 alt=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=39 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=7 ROWSPAN=2>
			<IMG SRC="images/admin_02.gif" WIDTH=330 HEIGHT=43 ALT=""></TD>
		<TD>
			<IMG SRC="images/admin_03.gif" WIDTH=95 HEIGHT=22 ALT=""></TD>
		<TD COLSPAN=2>
			<IMG SRC="images/admin_04.gif" WIDTH=93 HEIGHT=22 ALT=""></TD>
		<TD COLSPAN=2>
			<IMG SRC="images/admin_03.gif" WIDTH=95 HEIGHT=22 ALT=""></TD>
		<TD>
			<IMG SRC="images/admin_03.gif" WIDTH=91 HEIGHT=22 ALT=""></TD>
		<TD COLSPAN=2 ROWSPAN=2>
			<IMG SRC="images/admin_07.gif" WIDTH=66 HEIGHT=43 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=22 ALT=""></TD>
	</TR>
	<TR>
		<TD><img src="images/admin_03.gif" width=95 height=21 alt=""></TD>
		<TD COLSPAN=2>
			<IMG SRC="images/admin_03.gif" WIDTH=93 HEIGHT=21 ALT=""></TD>
		<TD COLSPAN=2>
			<IMG SRC="images/admin_03.gif" WIDTH=95 HEIGHT=21 ALT=""></TD>
		<TD>
			<IMG SRC="images/Untitled-1 copy.jpg" WIDTH=91 HEIGHT=21 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=21 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=11>
			<IMG SRC="images/admin_12.gif" WIDTH=545 HEIGHT=87 ALT=""></TD>
		<TD COLSPAN=4>
			<IMG SRC="images/admin_13.gif" WIDTH=225 HEIGHT=87 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=87 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=15>
			<IMG SRC="images/admin_14.gif" WIDTH=770 HEIGHT=6 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=6 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=3 ROWSPAN=2 background="images/admin_15.gif"><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="59" height="41">&nbsp;&nbsp;&nbsp;<img src="icon/user_48.png" width="45" height="37"></td>
            <td width="141"> <span class="style27"><? echo $username ; }?></span></td>
          </tr>
        </table></TD>
		<TD COLSPAN=2>
			<IMG SRC="images/admin_16.gif" WIDTH=16 HEIGHT=17 ALT=""></TD>
		<TD>
			<IMG SRC="images/admin_17.gif" WIDTH=1 HEIGHT=17 ALT=""></TD>
		<TD COLSPAN=9>
			<IMG SRC="images/admin_18.gif" WIDTH=502 HEIGHT=17 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=17 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=11 ROWSPAN=5><IFRAME 
      style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; SCROLLBAR-FACE-COLOR: #00076d; Z-INDEX: 1; PADDING-BOTTOM: 0px; SCROLLBAR-HIGHLIGHT-COLOR: #00077e; SCROLLBAR-SHADOW-COLOR: #00064f; SCROLLBAR-3DLIGHT-COLOR: #3300cc; SCROLLBAR-ARROW-COLOR: #a20000; SCROLLBAR-TRACK-COLOR: #00065b; SCROLLBAR-DARKSHADOW-COLOR: #000000" 
      border=0 name=I2 marginWidth=1 marginHeight=1 
      src="adminHome.php" frameBorder=0 width=492 
      height=386> </IFRAME></TD>
		<TD ROWSPAN=6>
			<IMG SRC="images/admin_20.gif" WIDTH=27 HEIGHT=390 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=37 ALT=""></TD>
	</TR>
	<TR>
		<TD><img src="images/admin_21.gif" width=35 height=106 alt=""></TD>
		<TD ROWSPAN=3 background="images/admin_22.gif"><table width="185" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="185"><div class="navbar">
<!-- *********************************Start Menu****************************** -->
<div class="mainDiv" >
    <div class="topItem" >Admin Info</div>        
<div class="dropMenu" ><!-- -->
	<div class="subMenu" style="display:inline;">
		    <div class="subItem"><a href="adminHome.php" target="I2">New Reservation List</a></div>
	        <div class="subItem"><a href="listProduct.php" target="I2">View Food Menu </a></div>
		    <div class="subItem"><a href="listReservation.php" target="I2">View Reservation</a></div>
			 <div class="subItem"><a href="profileadmin.php" target="I2">My Profile</a></div>
	</div>
</div>
</div>
<!-- *********************************End Menu****************************** -->


<!-- *********************************Start Menu****************************** -->
<div class="mainDiv" >
<div class="topItem"  >Update Food Menu</div>        
<div class="dropMenu" ><!-- -->
	<div class="subMenu" style="display:none;">

		<div class="subItem"><a href="listCategory.php" target="I2">Add/Edit Food Category</a></div>
		<div class="subItem"><a href="listKind.php" target="I2">Add/Edit Food</a></div>
		<div class="subItem"><a href="productForm.php" target="I2">Update Food Details</a></div>
        </div>
</div>
</div>
<!-- *********************************End Menu****************************** -->
<?if($username=="manager"){?>
<!-- *********************************Start Menu****************************** -->
<div class="mainDiv" >
    <div class="topItem"  >Manager</div>        
<div class="dropMenu" ><!-- -->
	<div class="subMenu" style="display:none;">		
		<div class="subItem"><a href="listStaff.php" target="I2">Staff List</a></div>
		<div class="subItem"><a href="addStaffpapar.php" target="I2">Add Staff</a></div>
        </div>
</div>
</div>
<!-- *********************************End Menu****************************** -->
<?}?>
<!-- *********************************End Menu****************************** -->
<script type="text/javascript" src="xpmenuv21.js"></script>
</div></td>
        </tr>
        <?if($username=="manager"){?>
        <? }?>
      </table></TD>
		<TD>
			<IMG SRC="images/admin_23.gif" WIDTH=23 HEIGHT=106 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=106 ALT=""></TD>
	</TR>
	<TR>
		<TD ROWSPAN=2>
			<IMG SRC="images/admin_24.gif" WIDTH=35 HEIGHT=216 ALT=""></TD>
		<TD>
			<IMG SRC="images/admin_25.gif" WIDTH=23 HEIGHT=75 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=75 ALT=""></TD>
	</TR>
	<TR>
		<TD>
			<IMG SRC="images/admin_26.gif" WIDTH=23 HEIGHT=141 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=141 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=3 ROWSPAN=2>
			<IMG SRC="images/admin_27.gif" WIDTH=251 HEIGHT=31 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=27 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=2>
			<IMG SRC="images/admin_28.gif" WIDTH=16 HEIGHT=4 ALT=""></TD>
		<TD COLSPAN=9>
			<IMG SRC="images/admin_29.gif" WIDTH=476 HEIGHT=4 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=4>
			<IMG SRC="images/admin_30.gif" WIDTH=257 HEIGHT=59 ALT=""></TD>
		<TD COLSPAN=5>
			<IMG SRC="images/admin_31.gif" WIDTH=256 HEIGHT=59 ALT=""></TD>
		<TD COLSPAN=6>
		<IMG SRC="images/admin_32.gif" WIDTH=257 HEIGHT=59 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=59 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=15>
			<IMG SRC="images/admin_33.gif" WIDTH=770 HEIGHT=9 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=9 ALT=""></TD>
	</TR>
	<TR>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=35 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=193 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=23 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=6 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=62 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=95 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=88 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=27 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=68 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=91 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=39 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=27 HEIGHT=1 ALT=""></TD>
		<TD></TD>
	</TR>
</TABLE>

<!-- End ImageReady Slices -->
</BODY>
</HTML>
<?php }
else
{ ?>
<table width="800" border="0" cellpadding="0" cellspacing="0">    
<tr><td> <img src="icon/warning_48.png"></td>    
<td>
   <?  echo "To see this admin site you need to log in first !";
       echo "<a href=adminLogin.html>Log In here</a>";
   ?>
</td></tr>
</table>

<? }
?>